package com.ccctop.crowd.config;

import com.ccctop.crowd.contract.CrowdFunding;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.web3j.protocol.Web3j;
import org.web3j.protocol.http.HttpService;
import org.web3j.tx.TransactionManager;
import org.web3j.tx.gas.ContractGasProvider;

import java.math.BigInteger;

@Configuration
public class Web3jConfig {

    public final static String WALLET_PATH_PREFIX = Web3jConfig.class.getResource("/").getPath()+"wallet/";

    @Bean
    public Web3j web3j(){
        return Web3j.build(new HttpService());
    }


}
